#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_016;

TEST_CASE("16. 3Sum Closest", "[016]") {

SECTION("example 1") {
    std::vector<int> arr{-1,2,1,-4};
    CHECK(Solution().threeSumClosest(arr, 1) == 2);
}

}
